<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <head>

        <title>IlusCode</title>           

        <script type="text/javascript" src="http://java.com/js/dtjava.js"></script>     
        <script>
             
            
            function deployIt() {
                dtjava.embed(
                { id: "IlusCodeFX",
                    url: "http://localhost:8080/ProyectoFinal-web/resources/IlusCodeFX.jnlp",
                    width: 1000,
                    height: 700,
                    placeholder: "place"
                },
                { javafx: "2.1+" },
                {}
            );
            }
            dtjava.addOnloadCallback( deployIt );
         
         
            
            function darCadena(){
                var doc= document.getElementById("PruebaFX");
                
                //alert(doc);
                if(doc!=null){
                   
                    var compila=doc.darCodigo();                 
                    
                 
                   
                    //var nombre= new miApp.darNombre();
                    
                    alert(compila);
                    
                    //document.getElementById('formId:buttonId').click();
                    
                    
                }
                
            }
            
     

        </script>

    </head>

    <body>
        <div id="place"></div>
        <div id="eliminar">
            <h:form>
                <h:commandLink value="Editar cuenta" action="/usuario/Edit"></h:commandLink>
                <h:commandButton value="Cerrar Sesion" action="#{usuarioController.cerrarSesion()}">
                </h:commandButton>
            </h:form>
        </div>


    </body>
</html>

